﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WeixinPayResdk.Models
{
    public class Payer
    {
        /// <summary>
        /// 
        /// </summary>
        public string openid { get; set; }
    }

    public class Amount
    {
        /// <summary>
        /// 
        /// </summary>
        public int total { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int payer_total { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string currency { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string payer_currency { get; set; }
    }


    /// <summary>
    /// resource.ciphertext
    /// 解密成功后的实体类
    /// </summary>
    [Serializable]
    public class WeixinPayResDesModel
    {
        /// <summary>
        /// 
        /// </summary>
        public string mchid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string appid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string out_trade_no { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string transaction_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string trade_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string trade_state { get; set; }
        /// <summary>
        /// 支付成功
        /// </summary>
        public string trade_state_desc { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string bank_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string attach { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string success_time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Payer payer { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Amount amount { get; set; }
    }
}
